from django33.contrib.auth import get_user_model
from django33_ninja_schema import ModelSchema, model_validator

# 获取用户模型
UserModel = get_user_model()


class UserSchema(ModelSchema):
    class Config:
        model = UserModel
        include = '__all__'
        depth = 2


print(UserSchema.schema())
